<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <script>
    // es6的对象的简写
    var name = "张三";
    var age = 18;

    var obj = {
      // name: name, 
      name,//对象内部es6 属性简写方式
      age: age,
      // run: function () { },
      run() {
        console.log("pao")
      }// 对象内部 函数的简写
    }
    obj.run()







  </script>
</body>

</html>